Explicit Operator

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Converts a Pair to a KeyValuePair. The Key part of the KeyValuePair gets the First element, and the Value part of the KeyValuePair gets the Second elements.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static explicit operator KeyValuePair<TFirst, TSecond> (
	Pair<TFirst, TSecond> pair
)
Visual Basic (Declaration)
Public Shared Narrowing Operator CType ( _
	pair As Pair(Of TFirst, TSecond) _
) As KeyValuePair(Of TFirst, TSecond)
Visual C++
static explicit operator KeyValuePair<TFirst, TSecond>  (
	Pair<TFirst, TSecond> pair
)

Parameters

pair
Pair<(Of <TFirst, TSecond>)>
Pair to convert.

Return Value

The KeyValuePair created from pair.

See Also